import axios from "axios";

let baseUrl = "http://127.0.0.1:9090/";
let wsUrl = "127.0.0.1:9090";
export default class AxiosManage {
    static get BaseUrl() {
        return baseUrl;
    }

    static set baseUrl(value) {
        baseUrl = value;
    }

    static set wsUrl(value) {
        wsUrl = value;
    }

    static get WsUrl() {
        return wsUrl;
    }

    //获取汽轮机转动的声音
    static GetSteamAudio() {
        return axios.get(baseUrl + "getSteamAudio");
    }

    static getSteamAudioMiddle() {
        return axios.get(baseUrl + "getSteamAudioMiddle");
    }

    static getSteamAudioDecrease() {
        return axios.get(baseUrl + "getSteamAudioDecrease");
    }

    static getSteamAudioIncrease() {
        return axios.get(baseUrl + "getSteamAudioIncrease");
    }

    static imitate(data) {
        return axios.post(baseUrl + "imitate",data);
    }

}


